// 统一管理项目用户相关的接口
import request from '@/utils/request'

// 项目可视化分析模块相关的请求地址
enum API {
  CITY_PRICE_DISTRIBUTION_URL = '/analysis/city_price_distribution',
  AREA_NAME_PRICE_URL = '/analysis/area_name_price',
  DECORATION_DISTRIBUTION_URL = '/analysis/decoration_distribution',
  FOLLOW_NUMBER_FUNNEL_URL = '/analysis/follow_number_funnel',
  BUILDING_TYPE_PIE_URL = '/analysis/building_type_pie',
  AREA_PRICE_SCATTER_URL = '/analysis/city_plot_counts',
  CENTER_CONTENT_URL = '/analysis/center_content',
  PRICE_TREND_URL = '/analysis/price_trend',
}

export const reqBarAPI = () =>
  request.get<any, any>(API.CITY_PRICE_DISTRIBUTION_URL)
export const reqLineAPI = () => request.get<any, any>(API.AREA_NAME_PRICE_URL)
export const reqPieAPI = () =>
  request.get<any, any>(API.DECORATION_DISTRIBUTION_URL)
export const reqFunnelAPI = () =>
  request.get<any, any>(API.FOLLOW_NUMBER_FUNNEL_URL)
export const reqPieDecorationAPI = () =>
  request.get<any, any>(API.BUILDING_TYPE_PIE_URL)
export const reqWordCloudAPI = () =>
  request.get<any, any>(API.AREA_PRICE_SCATTER_URL)
export const reqCenterAPI = () => request.get<any, any>(API.CENTER_CONTENT_URL)
export const reqTrendAPI = () => request.get<any, any>(API.PRICE_TREND_URL)
